package online.sixfish.doubao.task;

import lombok.extern.slf4j.Slf4j;
import online.sixfish.question.service.impl.MockMatchService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class MockMatchTask {
    @Resource
    MockMatchService mockMatchService;

    @Scheduled(fixedRate = 1000*60)
    public void update(){
        mockMatchService.schedule();
    }
}
